From: Richard M. Stallman Date: Thu, 13 Aug 2009 01:04:37 +0000 (+0000) Subject: * mail/rmail.el (rmail-get-attr-names): X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~11129 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=732025cb3d0e348eeb7e687403d6801861cbfbe7;p=emacs.git * mail/rmail.el (rmail-get-attr-names): Accept an attribute header that is too short. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c4268c45cac..ad18578e4c4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-08-13 Richard Stallman + * mail/rmail.el (rmail-get-attr-names): + Accept an attribute header that is too short. + * progmodes/compile.el (compilation-goto-locus): Use next-error-move-function. diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index d50dace2b31..2fd99fbd282 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -2157,9 +2157,9 @@ If MSG is nil, use the current message." (nmax (length rmail-attr-array)) result temp) (when value - (if (/= (length value) nmax) + (if (> (length value) nmax) (message "Warning: corrupt attribute header in message") - (dotimes (index nmax) + (dotimes (index (length value)) (setq temp (and (not (= ?- (aref value index))) (nth 1 (aref rmail-attr-array index))) result